package com.wondertek.poms.core.service;

import com.wondertek.poms.common.service.IService;
import com.wondertek.poms.dao.po.PrdInfoRule;

import java.util.List;

/**
 * <p><b>IPcProductRuleService Description:</b> 二级产品规则 管理 </p>
 *
 * @author 窦再兴
 * <p><b>DATE</b> 2020-10-16 15:56:15</p>
 */
public interface IPcPrdInfoRuleService extends IService<PrdInfoRule, Long> {

	List<PrdInfoRule> findAllByPrdInfoId(Long prdInfoId);

	PrdInfoRule delete(PrdInfoRule cp);

	List<PrdInfoRule> findAllByPrdInfoIdAndIsprdSel(Long prdInfoId, Integer isprdSel);

	int deleteByPrdRuleId(List<Long> ids);

	PrdInfoRule update(PrdInfoRule prdInfoRule);

	PrdInfoRule saveRuleAndSecondClassify(PrdInfoRule infoRule);

	PrdInfoRule updateRuleAndSecondClassify(PrdInfoRule infoRule);

	PrdInfoRule findByPrdRuleId(Long prdRuleId);
}